<%@ page language="java" errorPage="../error/exceptionHandler.jsp" %>
<%@ page import="java.sql.*" %>
<%@ page import="org.cgs.web.database.DatabaseConnector" %>
	<%
	String courseCode = "";

	// Get page parameters
	if(request.getParameter("courseCode") != null)
	{
	     courseCode = request.getParameter("courseCode");
        }	
	%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-AU">
  <head>
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="../css/sinorca-screen.css" media="screen" title="Sinorca (screen)" />
    <link rel="stylesheet alternative" type="text/css" href="../css/sinorca-screen-alt.css" media="screen" title="Sinorca (alternative)" />
    <link rel="stylesheet" type="text/css" href="../css/sinorca-print.css" media="print" />
    <link rel="stylesheet" type="text/css" href="../css/sinorca.css" />

    <title>Instructor Students Page</title>
  </head>

  <body>
    <div id="top"><a href="#main-copy" class="doNotDisplay doNotPrint">Skip to main content.</a></div>
    <div id="header">
      <div class="superHeader">
      </div>

      <div class="midHeader">
        <h1 class="headerTitle">Course Group Scheduler 3.0</h1>
      </div>
    </div>

    <!-- ##### Side Bar ##### -->
    <div id="side-bar">
      <div>
        <p class="sideBarTitle">Schools Menu</p>
        <ul>
	   <li><a href="addSchool.jsp?courseCode=<%= courseCode %>">Add School</a></li>
	   <li><a href="schoolMain.jsp?courseCode=<%= courseCode %>">Edit School</a></li>
        </ul>
      </div>
    </div>

    <!-- ##### Main Copy ##### -->

    <div id="main-copy">
      <h1 id="introduction">School Data</h1>
      <form name="f" method="post" action="/cgs/AddSchool">
      <INPUT type="hidden" name="courseCode" value="<%=courseCode%>">
      <INPUT type="hidden" name="isInstructor" value="false">
      <table>
	<tr><td>School Name:</td><td><INPUT TYPE="text" class="textInput" NAME="name"></td></tr>
	<tr><td>Contact:</td><td><INPUT TYPE="text" class="textInput" NAME="contact"></td></tr>
	<tr><td>Phone Number:</td><td><INPUT TYPE="text" class="textInput" NAME="phone"></td></tr>
	<tr><td>Number of Students:</td><td><INPUT TYPE="text" class="textInput" NAME="numStudents"></td></tr>
	<tr><td>School Address:</td><td><textarea NAME="address"></textarea></td></tr>
	<tr><td>Additional Details:</td><td><textarea NAME="details"></textarea></td></tr>
	</table>

	<br>
	<br>
	School free times:<br>
			<table>
				<tr>
					<td>&nbsp;</td>
					<td>Monday</td>
					<td>Tuesday</td>
					<td>Wednesday</td>
					<td>Thursday</td>
					<td>Friday</td>
				</tr>
				<tr>
					<td>9:00-9:30AM</td>
					<td><input type="checkbox" name="times" value="Mon0900"></td>
					<td><input type="checkbox" name="times" value="Tue0900"></td>
					<td><input type="checkbox" name="times" value="Wed0900"></td>
					<td><input type="checkbox" name="times" value="Thu0900"></td>
					<td><input type="checkbox" name="times" value="Fri0900"></td>
				</tr>
				<tr>
					<td>9:30-10:00AM</td>
					<td><input type="checkbox" name="times" value="Mon0930"></td>
					<td><input type="checkbox" name="times" value="Tue0930"></td>
					<td><input type="checkbox" name="times" value="Wed0930"></td>
					<td><input type="checkbox" name="times" value="Thu0930"></td>
					<td><input type="checkbox" name="times" value="Fri0930"></td>
				</tr>
				<tr>
					<td>10:00-10:30AM</td>
					<td><input type="checkbox" name="times" value="Mon1000"></td>
					<td><input type="checkbox" name="times" value="Tue1000"></td>
					<td><input type="checkbox" name="times" value="Wed1000"></td>
					<td><input type="checkbox" name="times" value="Thu1000"></td>
					<td><input type="checkbox" name="times" value="Fri1000"></td>
				</tr>
				<tr>
					<td>10:30-11:00AM</td>
					<td><input type="checkbox" name="times" value="Mon1030"></td>
					<td><input type="checkbox" name="times" value="Tue1030"></td>
					<td><input type="checkbox" name="times" value="Wed1030"></td>
					<td><input type="checkbox" name="times" value="Thu1030"></td>
					<td><input type="checkbox" name="times" value="Fri1030"></td>
				</tr>
				<tr>
					<td>11:00-11:30AM</td>
					<td><input type="checkbox" name="times" value="Mon1100"></td>
					<td><input type="checkbox" name="times" value="Tue1100"></td>
					<td><input type="checkbox" name="times" value="Wed1100"></td>
					<td><input type="checkbox" name="times" value="Thu1100"></td>
					<td><input type="checkbox" name="times" value="Fri1100"></td>
				</tr>
				<tr>
					<td>11:30-12:00PM</td>
					<td><input type="checkbox" name="times" value="Mon1130"></td>
					<td><input type="checkbox" name="times" value="Tue1130"></td>
					<td><input type="checkbox" name="times" value="Wed1130"></td>
					<td><input type="checkbox" name="times" value="Thu1130"></td>
					<td><input type="checkbox" name="times" value="Fri1130"></td>
				</tr>
				<tr>
					<td>12:00-12:30PM</td>
					<td><input type="checkbox" name="times" value="Mon1200"></td>
					<td><input type="checkbox" name="times" value="Tue1200"></td>
					<td><input type="checkbox" name="times" value="Wed1200"></td>
					<td><input type="checkbox" name="times" value="Thu1200"></td>
					<td><input type="checkbox" name="times" value="Fri1200"></td>
				</tr>
				<tr>
					<td>12:30-1:00PM</td>
					<td><input type="checkbox" name="times" value="Mon1230"></td>
					<td><input type="checkbox" name="times" value="Tue1230"></td>
					<td><input type="checkbox" name="times" value="Wed1230"></td>
					<td><input type="checkbox" name="times" value="Thu1230"></td>
					<td><input type="checkbox" name="times" value="Fri1230"></td>
				</tr>
				<tr>
					<td>1:00-1:30PM</td>
					<td><input type="checkbox" name="times" value="Mon0100"></td>
					<td><input type="checkbox" name="times" value="Tue0100"></td>
					<td><input type="checkbox" name="times" value="Wed0100"></td>
					<td><input type="checkbox" name="times" value="Thu0100"></td>
					<td><input type="checkbox" name="times" value="Fri0100"></td>
				</tr>
				<tr>
					<td>1:30-2:00PM</td>
					<td><input type="checkbox" name="times" value="Mon0130"></td>
					<td><input type="checkbox" name="times" value="Tue0130"></td>
					<td><input type="checkbox" name="times" value="Wed0130"></td>
					<td><input type="checkbox" name="times" value="Thu0130"></td>
					<td><input type="checkbox" name="times" value="Fri0130"></td>
				</tr>
				<tr>
					<td>2:00-2:30PM</td>
					<td><input type="checkbox" name="times" value="Mon0200"></td>
					<td><input type="checkbox" name="times" value="Tue0200"></td>
					<td><input type="checkbox" name="times" value="Wed0200"></td>
					<td><input type="checkbox" name="times" value="Thu0200"></td>
					<td><input type="checkbox" name="times" value="Fri0200"></td>
				</tr>
				<tr>
					<td>2:30-3:00PM</td>
					<td><input type="checkbox" name="times" value="Mon0230"></td>
					<td><input type="checkbox" name="times" value="Tue0230"></td>
					<td><input type="checkbox" name="times" value="Wed0230"></td>
					<td><input type="checkbox" name="times" value="Thu0230"></td>
					<td><input type="checkbox" name="times" value="Fri0230"></td>
				</tr>
				<tr>
					<td>3:00-3:30PM</td>
					<td><input type="checkbox" name="times" value="Mon0300"></td>
					<td><input type="checkbox" name="times" value="Tue0300"></td>
					<td><input type="checkbox" name="times" value="Wed0300"></td>
					<td><input type="checkbox" name="times" value="Thu0300"></td>
					<td><input type="checkbox" name="times" value="Fri0300"></td>
				</tr>
			</table>
  
      <INPUT TYPE="Submit" VALUE="Add School"> 
     </form>  	

      <a class="topOfPage" href="#top" title="Go to the top of this page">^ TOP</a>
    
    <!-- ##### Footer ##### -->
    <div id="footer">
        E-mail:&nbsp;<a href="./index.html" title="Email webmaster">jeffrey.s.garrett@gmail.com</a>
    </div>
  </body>
</html>
